<html>
<head>
<style type="text/css">
iframe {
	width: 100%;
	height: 98%;
	frameborder: no;
	border: 0;
}
#loading{
	position:absolute;
  	left:50%;
  	top:50%;
}
</style>
<meta name="Referer" content="origin">
<meta name="testParam" content="origin">
</head>
<body>
	<iframe id='uploadMediaIframe' name='uploadMediaIframe'
		onload="onloadIframe(this)"></iframe>

	<form action="post1.jsp" id='exForm' class='exForms' method='post'
		target='uploadMediaIframe'>
		<input name='param1' value='uploadEntryMedia' type="hidden" />
	</form>
	<script type="text/javascript">
		function SetWinHeight(obj) {
			var win = obj;
			if (document.getElementById) {
				if (win && !window.opera) {
					if (win.contentDocument
							&& win.contentDocument.body.offsetHeight) {
						win.height = win.contentDocument.body.offsetHeight;
						win.width = win.contentDocument.body.offsetWidth;
					} else if (win.Document && win.Document.body.scrollHeight) {
						win.height = win.Document.body.scrollHeight;
						win.width = win.Document.body.scrollWidth;
					}
				}
			}
		}

		var count = 0;
		function onloadIframe(iframe) {
			SetWinHeight(iframe);
			if (++count > 1) {
				alert("yes");
				document.getElementById('loading').style.display="none"
			}

		}
		exForm.submit();
	</script>
<div id="loading">loading....</div>
</body>
</html>
